package com.heima.common.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @author Administrator
 */

@Getter
@AllArgsConstructor
public enum BasicEnum implements IBasicEnum {

    SUCCEED(200, "操作成功"),
    SECURITY_ACCESSDENIED_FAIL(401, "权限不足!"),
    LOGIN_NULL_FAIL(401, "用户登录失败，用户信息为空"),
    LOGIN_USER_NOT_EXIST_FAIL(401, "用户不存在"),
    LOGIN_PASSWORD_FAIL(401, "用户登录失败，用户名或密码错误"),
    LOGIN_FAIL(401, "用户登录失败"),
    LOGIN_LOSE_EFFICACY(401, "登录状态失效，请重新登录"),
    SYSYTEM_FAIL(500, "系统运行异常"),

    TASK_NOT_EXISTS(404,"工单不存在");

    /**
     * 编码
     */
    public final int code;
    /**
     * 信息
     */
    public final String msg;
}
